package com.hdkj.eduorder.client;

import com.hdkj.commonutils.R;
import com.hdkj.commonutils.ordervo.CourseWebVoOrder;
import com.hdkj.eduorder.entity.vo.timestampVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient("service-edu")
public interface EduClient {

    //根据课程id查询课程信息
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);


    @PostMapping("/eduservice/timestamp/saveTs")
    public R saveTs(@RequestBody timestampVo ts);


    @PostMapping("/eduservice/timestamp/getinfo")
    public R getinfo(@RequestParam(name = "title") String title,@RequestParam(name = "uid") String uid);

}
